import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
const Distribution: AppRouteRecordRaw = {
  path: '/distribution',
  name: 'distribution',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '分销',
    icon: 'icon-user-group',
    order: 4,
    requiresAuth: true,
  },
  children: [
    {
      path: '/distribution/list', // The midline path complies with SEO specifications
      name: 'distributionlist',
      component: () => import('@/views/market/distribution/list.vue'),
      meta: {
        locale: '分销员列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/distribution/applyList', // The midline path complies with SEO specifications
      name: 'distributionapplyList',
      component: () => import('@/views/market/distribution/applyList.vue'),
      meta: {
        locale: '分销员申请列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/distribution/level', // The midline path complies with SEO specifications
      name: 'distributionlevel',
      component: () => import('@/views/market/distribution/level.vue'),
      meta: {
        locale: '分销等级',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default Distribution
